﻿<%@ Page Title="" Language="C#" MasterPageFile="~/quangtri/quangtri.master" AutoEventWireup="true" CodeFile="sanpham.aspx.cs" Inherits="quangtri_sanpham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 188px;
        }
        .style3
        {
            width: 188px;
            color: #FF0000;
            font-size: large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table class="style1">
        <tr>
            <td class="style3">
                <strong>Thêm mới sản phẩm</strong></td>
            <td>
                <asp:Label ID="lblthongbao" runat="server" Font-Bold="False" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Thuộc nhóm sản phẩm</td>
            <td>
                <asp:ListBox ID="lsbNhomsp" runat="server" 
                    DataTextField="tennhom" DataValueField="IDnhomsp" 
                    onselectedindexchanged="lsbNhomsp_SelectedIndexChanged" Rows="1" 
                    AutoPostBack="True">
                </asp:ListBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Loại sản phẩm</td>
            <td>
                <asp:ListBox ID="lsbLoaisp" runat="server" 
                    DataTextField="tenloai" Rows="1"></asp:ListBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Tên sản phẩm</td>
            <td>
                <asp:TextBox ID="txtTensp" runat="server" Width="232px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Giá</td>
            <td>
                <asp:TextBox ID="txtGia" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Số lượng</td>
            <td>
                <asp:TextBox ID="txtSoluong" runat="server" Width="84px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Hình ảnh</td>
            <td>
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                Mô tả</td>
            <td>
                <asp:TextBox ID="txtMota" runat="server" Height="86px" TextMode="MultiLine" 
                    Width="328px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="ImageButton1" runat="server" Height="27px" 
                    ImageUrl="~/image/themmoi.gif" onclick="ImageButton1_Click" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                Danh sách các sản phẩm</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

